<template>
  <view class="app-container">
    <u-cell-group class="notice-list" :border="false">
      <u-cell :border="false" :title="item.title" :label="item.createdAt" isLink
        :url="`/pages/noticedetail/noticedetail?title=${item.title}&message=${item.detail}`" v-for="(item) in noticesList" :key="item.id"></u-cell>
    </u-cell-group>
  </view>
</template>

<script>
export default {
  data() {
    return {}
  },
  computed: {
    noticesList() {
      return this.$store.state.noticeList.map(e => ({
        ...e,
        createdAt: uni.$u.timeFormat(e.createdAt, 'yyyy-mm-dd')
      }))
    }
  },
  methods: {

  }
}
</script>

<style lang="scss">
.gonggao-list {
  .u-cell {
    background-color: #fff;
    margin-bottom: 12px;
  }
}
</style>
